package com.xzp.blog.entity.dto.form;

import com.xzp.blog.consts.DataConsts;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

public class AdminUserPwdModifyForm {
    @NotEmpty
    @Length(max = DataConsts.PASSWORD_MAX_LENGTH)
    private String oriPwd;
    @NotEmpty
    @Length(max = DataConsts.PASSWORD_MAX_LENGTH)
    private String newPwd;
    @NotEmpty
    @Length(max = DataConsts.PASSWORD_MAX_LENGTH)
    private String confirmPwd;

    public AdminUserPwdModifyForm(String oriPwd, String newPwd, String confirmPwd) {
        this.oriPwd = oriPwd;
        this.newPwd = newPwd;
        this.confirmPwd = confirmPwd;
    }

    public AdminUserPwdModifyForm() {
    }

    public String getOriPwd() {
        return oriPwd;
    }

    public void setOriPwd(String oriPwd) {
        this.oriPwd = oriPwd;
    }

    public String getNewPwd() {
        return newPwd;
    }

    public void setNewPwd(String newPwd) {
        this.newPwd = newPwd;
    }

    public String getConfirmPwd() {
        return confirmPwd;
    }

    public void setConfirmPwd(String confirmPwd) {
        this.confirmPwd = confirmPwd;
    }
}
